package com.kwshare.common.api;

import com.kwshare.common.core.constant.ServiceNameConstants;
import com.kwshare.common.core.domain.system.LoginInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 系统服务
 *
 * @author yangjing
 */
@Component
@FeignClient(value = ServiceNameConstants.SYSTEM_SERVICE)
public interface RemoteLogService {

    /**
     * 添加登录日志
     *
     * @param loginInfo 登录信息
     */
    @PostMapping("/logininfo")
    void add(@RequestBody LoginInfo loginInfo);
}
